<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML >
<html>
<head>
<title>'showchacter.jsp'</title>
<style type="text/css">
#content {
	width: 100%;
	min-height: 120px;
	max-height: 600px;
	_height: 120px;
	margin-left: auto;
	margin-right: auto;
	padding: 3px;
	outline: 0;
	border: 1px solid #a0b3d6;
	font-size: 12px;
	word-wrap: break-word;
	overflow-x: hidden;
	overflow-y: auto;
	_overflow-y: visible;
}
</style>

<script type="text/javascript">
function submitChacter(){
var content = document.getElementById("content").innerHTML;
var url = "${pageContext.request.contextPath }/public/TestToSave";
var method ="POST";
var params="content="+encodeURIComponent(content);//uri编码
var tgel = "tips";
toDoXHR(url,method,params,tgel);

}
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/JS/toDoXHR.js"></script></head>

<body>
	<div>其他的</div>
	<div id="content"  contenteditable="plaintext-only">${content }</div>
	<div><input type="button" value="提交章节" onclick="submitChacter()"/></div>
    <div id="tips"></div>
    <textarea id="copycontent"></textarea>
</body>
</html>
